<template>
  <div class="button-wrapper">
    <span :class="btnCls" @click="handleClick"><slot></slot></span>
  </div>
</template>

<script>
export default {
  props: {
    type: {
      type: String,
      default: 'primary'
    },
    size: {
      type: String,
      default: 'default'
    }
  },

  methods: {
    handleClick() {
      this.$emit('click')
    }
  },
  computed: {
    btnCls() {
      return ['btn', `btn-${this.type}`, `btn-${this.size}`]
    }
  }
}
</script>
